package cn.zymall.merchant.mapper;

import cn.zymall.common.model.Merchant;
import cn.zymall.common.model.Spu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MerchantAccountMapper extends BaseMapper<Merchant> {
     List<Merchant> getAllMerchant(Integer merchantStatusId);
     Merchant getSingelMerchant(Integer merchantId);

     Integer updataMerchantInfo(Merchant merchant);

     List<String> getMerchantAllAccount();

     Integer updataMerchantStatus(@Param("merchantId") Integer merchantId,@Param("merchantStatusId") Integer merchantStatusId);

     Integer addMerchant(Merchant merchant);
}
